snapshot: Introduce transform APIs
authorBenjamin Otte <otte@redhat.com>
Thu, 21 Feb 2019 03:24:24 +0000 (04:24 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 21 Feb 2019 18:47:28 +0000 (19:47 +0100)
commit51fac44ba543f587e44b9c91d4d0eb6e7d90afb0
treecb1d2818aa5cb3bbe8efb4ad043f4685b9a40f1e
parent2bdc0748e50d5b3e6d2dfc5c2210686b8ca0baad
snapshot: Introduce transform APIs

Instead of gtk_snapshot_offset(), provide a full set of functions
kept in sync with GtkTransform APIs.

On top of that, add gtk_snapshot_save() and gtk_snapshot_restore()
mirroring cairo_save()/restore() that allow saving a snapshot's
transform state.
docs/reference/gtk/gtk4-sections.txt
gtk/gtksnapshot.c
gtk/gtksnapshot.h
gtk/gtksnapshotprivate.h